package com.web.controller;

//import com.util.service.impl.GitReadServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Profile;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@Controller
@RequestMapping("/util")
public class UtilController {
//    @Autowired
//    private GitReadServiceImpl gitReadService;

    @RequestMapping("/show")
    public String show(){
        return "pages/read_git/index";
    }
    @RequestMapping("/read_git")
    @ResponseBody
    public String read(){
//        return new GitReadServiceImpl().readGitFile();
        return "1";
    }
}
